package com.tenqian.utils;

import com.tenqian.Result;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import java.util.List;

public interface BaseService<T> {
    List<T> findAll();

    Page pageData(Specification<T> specification, Pageable pageable);

    void save(Iterable<T> iterable);

    Result save(T t);
}
